// tabBarComponent/tabBar.js
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tabbar: {
      type: Object,
      value: {
        "list": [{
            "pagePath": "/pages/calendar/calendar",
            "text": "日历",
            "iconPath": "/resources/pictures/tabbar/calendar.png",
            "selectedIconPath": "/resources/pictures/tabbar/calendar.png"
          },
          {
            "pagePath": "/pages/favorite/favorite",
            "text": "喜欢",
            "iconPath": "/resources/pictures/tabbar/favorite.png",
            "selectedIconPath": "/resources/pictures/tabbar/favorite.png"
          },
          {
            "pagePath": "/pages/index/index",
            "text": "",
            "iconPath": "/resources/pictures/tabbar/home.png",
            "selectedIconPath": "/resources/pictures/tabbar/home.png"
          },
          {
            "pagePath": "/pages/store/store",
            "text": "商城",
            "iconPath": "/resources/pictures/tabbar/store.png",
            "selectedIconPath": "/resources/pictures/tabbar/store.png"
          },
          {
            "pagePath": "/pages/user/user",
            "text": "我的",
            "iconPath": "/resources/pictures/tabbar/user.png",
            "selectedIconPath": "/resources/pictures/tabbar/user.png"
          }
        ],
        "color": "#888",
        "selectedColor": "#e0342e",
        "backgroundColor": "#fff"

      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    isIphoneX: app.globalData.isIphoneX,
  },


 /**
   * 组件的生命周期
   */
  // lifetimes: {
  //   attached() {
  //     const isIphoneXPlus = app.globalData.isIphoneX;
  //     console.log(isIphoneXPlus)
  //     this.setData({
  //       isIphoneX: isIphoneXPlus
  //     })
  //     console.log(this.data.isIphoneX)
  //   }
  // },

  /**
   * 组件的方法列表
   */
  methods: {
    
  }
})